首页> 外文OA文献 >From Regexes to Parsing Expression Grammars
【2h】

From Regexes to Parsing Expression Grammars

机译:从正则表达到解析表达式语法

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Most scripting languages nowadays use regex pattern-matching libraries. Theseregex libraries borrow the syntax of regular expressions, but have an informalsemantics that is different from the semantics of regular expressions, removingthe commutativity of alternation and adding ad-hoc extensions that cannot beexpressed by formalisms for efficient recognition of regular languages, such asdeterministic finite automata. Parsing Expression Grammars are a formalism that can describe alldeterministic context-free languages and has a simple computational model. Inthis paper, we present a formalization of regexes via transformation to ParsingExpression Grammars. The proposed transformation easily accommodates several ofthe common regex extensions, giving a formal meaning to them. It also providesa clear computational model that helps to estimate the efficiency ofregex-based matchers, and a basis for specifying provably correct optimizationsfor them.
机译:如今,大多数脚本语言都使用正则表达式模式匹配库。这些正则表达式库借用了正则表达式的语法,但具有与正则表达式的语义不同的非正式语义,消除了交替的可交换性,并添加了形式主义无法表达的即席扩展,以有效识别正则语言,例如确定性有限自动机。解析表达式文法是一种形式主义,可以描述所有确定性的上下文无关语言,并且具有简单的计算模型。在本文中,我们介绍了通过转换为ParsingExpression Grammrs形式化正则表达式。提议的转换很容易容纳几种常见的正则表达式扩展,从而为其赋予了正式的含义。它还提供了清晰的计算模型,可帮助评估基于正则表达式的匹配器的效率,并为可证明的正确匹配器提供了依据。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号